//
// Created by sunhongda on 2022/10/26.
//

#import <Foundation/Foundation.h>

#import "ILBaseLocalAckModel.h"

@interface ILBaseLocalAckModel : NSObject

/// 消息的id ，send 时 对应，用以区分消息防错乱
@property(nonatomic, assign) NSInteger id;

///  响应的code = 0 成功，反之失败
@property(nonatomic, assign) NSInteger code;

///  响应的message
@property(nonatomic, assign,nullable) NSString * message;

/// 控制命令
@property(nonatomic, assign) NSInteger cmd;

/// result 需要处理的业务结果
@property(nonatomic, strong, nullable) NSDictionary <NSString *, NSString *> *result;


#pragma mark 下方一些简化调用函数

- (instancetype )initWithDic:(NSDictionary *)dictionary;

///req is success
- (BOOL )isSuccess;

@end
